class SuperClass{
    public SuperClass(){
        System.out.println("父类的构造方法");
    }
    {
        System.out.println("父类的实例代码块");
    }
    static {
        System.out.println("父类的静态代码块");
    }
}
interface Studen{

}

class SubClass extends SuperClass{
    public SubClass(){
        System.out.println("子类的构造方法");
    }
    {
        System.out.println("子类的实例代码块");
    }
    static {
        System.out.println("子类的静态代码块");
    }
}

public class Test1 {
    static class Sub{
        
    }
    public static void main(String[] args) {
        Sub sub = new Sub();
        SubClass subClass1 = new SubClass();
        System.out.println("-----------------");
        SubClass subClass2 = new SubClass();
    }
}


